package com.dragon.repository.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 退款产品表
 * </p>
 *
 * @author sy
 * @since 2024-01-09
 */
@Getter
@Setter
@TableName("dragon_refund_product")
public class RefundProduct implements Serializable {

    /**
     * 主表id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 退款表id
     */
    private Integer refundId;

    /**
     * 产品id
     */
    private Integer productId;

    /**
     * 退款产品数量
     */
    private Integer refundNum;

    /**
     * 修改时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;

    /**
     * 单位名称
     */
    @TableField(exist = false)
    private String unitName;

    /**
     * 产品名称
     */
    @TableField(exist = false)
    private String name;

    /***
     * 产品规格
     */
    @TableField(exist = false)
    private String specification;

    /**
     * 材质
     */
    @TableField(exist = false)
    private String vProductMaterial;

    /**
     * 备注
     */
    @TableField(exist = false)
    private String vProductRemark;


}
